package com.xhxi.photobooker.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhxi.photobooker.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderService  {
    /*用户查询订单*/
    List<Order> listUserOrders(Long userId);

    /*创建订单*/
    Order createOrder(Order order);

    /*根据orderId查询订单*/
    Order selectByOrderId(Long orderId);
    /*完成订单*/
    boolean finishOrder(Long orderId);

    /*取消订单*/
    Order cancelOrder(Long id, Long userId);

    /*摄影师查询订单*/
    List<Order> listOrdersByPhotographerId(Long photographerId);
    
    /*获取摄影师完成的订单数*/
    Integer getCompletedOrderCount(Long photographerId);
    
    /*获取所有订单*/
    List<Order> getAllOrders();

    /*获取近期订单*/
    List<Order> getRecentOrders(int limit);
}
